from django.db import models


# Create your models here.
class User(models.Model):
    user_id = models.AutoField(primary_key=True, verbose_name='ID')
    user_card_num = models.CharField(max_length=100, default='', verbose_name='卡号')
    user_name = models.CharField(max_length=100, default='', verbose_name='名称')
    user_phone = models.CharField(max_length=100, default='', verbose_name='手机号')
    create_time = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
    update_time = models.DateTimeField(auto_now=True, verbose_name='更新时间')

    class Meta:
        db_table = 't_user'
        verbose_name = '用户'
        verbose_name_plural = verbose_name
